﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HCQ2_Model.Pay
{
    /// <summary>
    /// 订单ID
    /// </summary>
    public class PaymentParams : IParentOrderID,IPayUser
    {
        /// <summary>
        /// 【必填】父订单ID
        /// </summary>
        [Required(ErrorMessage ="父订单ID不能为空")]
        public string ParentOrderCode { get; set; }
        /// <summary>
        /// 【必填】付款方式；1(V金币)、2(微信)、3(支付宝)
        /// </summary>
        [Required(ErrorMessage = "付款方式不能为空")]
        [Range(1, 3, ErrorMessage = "付款方式值无效，必须是：1(V金币)、2(微信)、3(支付宝)其中之一")]
        public Nullable<int> PayMethod { get; set; }
        /// <summary>
        /// 【必填】购买人ID
        /// </summary>
        [Required(ErrorMessage = "购买人ID不能为空")]
        public string userid { get; set; }
    }
}
